package net.bungaeting.client.android.activity;

import android.app.AlertDialog;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.database.sqlite.SQLiteDatabase;
import android.location.Geocoder;
import android.location.LocationManager;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.Button;
import android.widget.CheckBox;
import android.widget.EditText;
import android.widget.TextView;

import com.google.android.maps.MapController;
import com.google.android.maps.MapView;

public class MapActivity extends com.google.android.maps.MapActivity{
	
	private MapController MapCon;
	EditText mEdit;

	public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.bungae_map);
        
        MapView myMap = (MapView)findViewById(R.id.myMapView);
        MapCon = myMap.getController();
        
        myMap.setSatellite(true);
        myMap.setStreetView(true);
        
        MapCon.setZoom(17);
        LocationManager locationM = (LocationManager)getSystemService(Context.LOCATION_SERVICE);
	
        mEdit = (EditText)findViewById(R.id.find_et);
        
        Intent intent = getIntent();
        String place = intent.getStringExtra("TextIn");
        if(place != null){
        	mEdit.setText(place);
        }      
	}
  	
	@Override
	protected boolean isRouteDisplayed() {
		// TODO Auto-generated method stub	
		return false;
	}
	public void testClick(View v) {
		Intent testIndent = new Intent(this, MapButtonActivity.class);
		startActivity(testIndent);
	}	
}
